home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 026-050 / scopedisk33 / showbr / showbrd.c < prev    next >
C/C++ Source or Header  |  1995-03-18  |  486b  |  18 lines

  1. #include    "libraries/expansionbase.h"
  2. #include    "libraries/expansion.h"
  3. #include    "libraries/configvars.h"
  4.  
  5. struct    ExpansionBase    *ExpansionBase;
  6.  
  7. void    main()
  8. {
  9. struct    ConfigDev    *cd = NULL;
  10.  
  11. ExpansionBase = (struct ExpansionBase *)OpenLibrary(EXPANSIONNAME,0);
  12.  
  13.     while(cd = FindConfigDev(cd,-1,-1))
  14.     {    printf("Address: x%08x Size: x%08x Manufacturer: %5d Product: %3d\n",cd->cd_BoardAddr,cd->cd_BoardSize,cd->cd_Rom.er_Manufacturer,cd->cd_Rom.er_Product);
  15.     }
  16. CloseLibrary(ExpansionBase);
  17. }
  18.